package org.pucc.common

object DatabaseConstant {

  object MysqlConstant{
    val ADDRESS = "192.168.0.219"
    val PORT = 3306
    val USER_NAME = "root"
    val USER_PASSWORD = "QWer_1234"
    def URL(database:String = "test") =  s"jdbc:mysql://$ADDRESS:$PORT/$database?characterEncoding=utf8&serverTimezone=Asia/Shanghai"
  }

  object SqlServerConstant {

    // --- common attribute ---
    val SQLSERVER_ADDRESS = "192.168.0.54"
    val SQLSERVER_PORT = 1433
    val USER_NAME = "sa"
    val USER_PASSWORD = "cdgl@123"

    // --- test attribute ---
    val DATABASE_NAME="test"
    val SCHEMA_NAME = "dbo"
    val TABLE_NAME="sys_user"
  }


}
